|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.distribution.PayloadUtil
final class PayloadUtil
This class provides utility methods for assembling and disassembling a heartbeat payload.
Care is taken to fit the payload into the MTU of ethernet, which is 1500 bytes. The algorithms in this class are capable of creating payloads for CacheManagers containing approximately 500 cache peers to be replicated.
Field Summary | |
---|---|
static int |
MTU
The maximum transmission unit. |
static java.lang.String |
URL_DELIMITER
Delmits URLS sent via heartbeats over sockets |
Method Summary | |
---|---|
static byte[] |
assembleUrlList(java.util.List localCachePeers)
Assembles a list of URLs |
static byte[] |
gzip(byte[] ungzipped)
Gzips a byte[]. |
static byte[] |
ungzip(byte[] gzipped)
The fastest Ungzip implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MTU
public static final java.lang.String URL_DELIMITER
Method Detail |
---|
public static byte[] assembleUrlList(java.util.List localCachePeers)
localCachePeers
-
public static byte[] gzip(byte[] ungzipped)
ungzipped
- the bytes to be gzipped
public static byte[] ungzip(byte[] gzipped)
gzipped
-
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |