public class SessionKryo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionKryo.CanEmptyPriorityQueueSerializer
java.util.PriorityQueue cannot accept a size less than 1,so it throw exception when read a empty PriorityQueue.
|
| Constructor and Description |
|---|
SessionKryo(ReadWriteSessionDataLocator readWriteSessionDataLocator,
CreateOption createOption) |
| Modifier and Type | Method and Description |
|---|---|
<T> Object |
readClassAndObject(T sessionLocateKey,
byte[] buffer) |
<T> T |
readObject(T sessionLocateKey,
byte[] buffer,
Class<T> type) |
void |
setClassLoader(ClassLoader classLoader) |
<T> byte[] |
writeClassAndObject(T sessionLocateKey,
Object object) |
<T> byte[] |
writeObject(T sessionLocateKey,
Object object) |
public SessionKryo(ReadWriteSessionDataLocator readWriteSessionDataLocator, CreateOption createOption)
public <T> byte[] writeClassAndObject(T sessionLocateKey,
Object object)
public <T> byte[] writeObject(T sessionLocateKey,
Object object)
public <T> Object readClassAndObject(T sessionLocateKey, byte[] buffer)
public <T> T readObject(T sessionLocateKey,
byte[] buffer,
Class<T> type)
public void setClassLoader(ClassLoader classLoader)
Copyright © 2021. All rights reserved.