Package io.moquette.persistence
Class EnqueuedMessageValueType
- java.lang.Object
-
- org.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
- io.moquette.persistence.EnqueuedMessageValueType
-
- All Implemented Interfaces:
Comparator<SessionRegistry.EnqueuedMessage>,org.h2.mvstore.type.DataType<SessionRegistry.EnqueuedMessage>
public final class EnqueuedMessageValueType extends org.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
-
Constructor Summary
Constructors Constructor Description EnqueuedMessageValueType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SessionRegistry.EnqueuedMessage a, SessionRegistry.EnqueuedMessage b)SessionRegistry.EnqueuedMessage[]createStorage(int i)intgetMemory(SessionRegistry.EnqueuedMessage obj)SessionRegistry.EnqueuedMessageread(ByteBuffer buff)voidwrite(org.h2.mvstore.WriteBuffer buff, SessionRegistry.EnqueuedMessage obj)-
Methods inherited from class org.h2.mvstore.type.BasicDataType
binarySearch, cast, equals, hashCode, isMemoryEstimationAllowed, read, write
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(SessionRegistry.EnqueuedMessage a, SessionRegistry.EnqueuedMessage b)
- Specified by:
comparein interfaceComparator<SessionRegistry.EnqueuedMessage>- Specified by:
comparein interfaceorg.h2.mvstore.type.DataType<SessionRegistry.EnqueuedMessage>- Overrides:
comparein classorg.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
getMemory
public int getMemory(SessionRegistry.EnqueuedMessage obj)
- Specified by:
getMemoryin interfaceorg.h2.mvstore.type.DataType<SessionRegistry.EnqueuedMessage>- Specified by:
getMemoryin classorg.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
write
public void write(org.h2.mvstore.WriteBuffer buff, SessionRegistry.EnqueuedMessage obj)- Specified by:
writein interfaceorg.h2.mvstore.type.DataType<SessionRegistry.EnqueuedMessage>- Specified by:
writein classorg.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
read
public SessionRegistry.EnqueuedMessage read(ByteBuffer buff)
- Specified by:
readin interfaceorg.h2.mvstore.type.DataType<SessionRegistry.EnqueuedMessage>- Specified by:
readin classorg.h2.mvstore.type.BasicDataType<SessionRegistry.EnqueuedMessage>
-
createStorage
public SessionRegistry.EnqueuedMessage[] createStorage(int i)
-
-