Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.terracotta:offheap-store

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.terracotta:offheap-store

A library that offers data structures allocated off the java heap.

  • 2.5.6
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

//// // Copyright 2015-2024 Terracotta, Inc., a Software AG company. // Copyright Super iPaaS Integration LLC, an IBM Company 2024 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ////

= OffHeap Store

OffHeap Store is a library that provides a set of map and cache implementations that store data outside of the normal Java heap. Additionally it provides a bunch of interesting things to support these functions that might be interesting in isolation to some people.

Licensed under the Apache License, Version 2.0 + (C) Terracotta, Inc., a Software AG company + (C) Super iPaaS Integration LLC, an IBM Company 2024 +

http://www.terracotta.org

See also: http://www.github.com/ehcache/ehcache3

image::https://dev.azure.com/TerracottaCI/terracotta/_apis/build/status/Terracotta-OSS.offheap-store?branchName=master[Build Status]

== What's Available On the surface OffHeap Store contains implementations of:

  • Map (non thread-safe)
  • ConcurrentMap (single stripe or segmented; read-write locked or exclusively locked)
  • Set (but use +Collections.newSetFromMap(Map)+ instead)
  • Clock Cache (single stripe or segmented; read-write locked or exclusively locked)

Additional functionality includes:

  • Cache Entry Pinning
  • Eviction Listeners
  • Non-fault tolerant disk backend

Things that might be interesting to some:

  • Per entry metadata (very basic API)
  • Serialization optimization (redundant ObjectStreamClass descriptor compression)
  • Native heap-alike implementation (+OffHeapStorageArea+)
  • A (crude) weak identity hash map (because the world needed one more)

== Structure

Like all software OffHeap Store is just a big stack of abstractions, rough structure starting at the bottom and working up.

[horizontal] +BufferSource+:: +ByteBuffer+ factories [+org.terracotta.offheapstore.buffersource+] +PageSource+:: +Page+ factories, that uses ByteBuffers) [+org.terracotta.offheapstore.paging+] +OffHeapStorageArea+:: native heap-alike that uses pages) +StorageEngine+:: provide storage for POJOs, some use +OffHeapStorageArea+) +OffHeapHashMap+:: core map implementation, uses storage engine for K/V storage and a page for the hashtable. a million subclasses:: all the map derivatives: concurrent, evicting (caches), et al.

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc