com.gigaspaces.lrmi.nio.filters
Class IOStreamCompressionFilter
java.lang.Object
  
com.gigaspaces.lrmi.nio.filters.IOStreamCompressionFilter
- All Implemented Interfaces: 
 - IOFilter, IOStreamFilter
 
public class IOStreamCompressionFilter
- extends Object
- implements IOStreamFilter
  
Use this network filter to send compress messages between client and server.
- Author:
 
  - barak
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
IOStreamCompressionFilter
public IOStreamCompressionFilter(IOStreamCompressionFilter.Algo algo)
setCompressionLevel
public void setCompressionLevel(int compressionLevel)
 
- Parameters:
 compressionLevel - compresson level should be a number in (0-9)
 
unrwap
public byte[] unrwap(ByteBuffer buf)
              throws DataFormatException
- Specified by:
 unrwap in interface IOStreamFilter
 
- Throws:
 DataFormatException
 
wrap
public byte[] wrap(ByteBuffer buf)
            throws Exception
- Specified by:
 wrap in interface IOStreamFilter
 
- Throws:
 Exception
 
setRemoteAddress
public void setRemoteAddress(SocketAddress remoteAddress)
- Specified by:
 setRemoteAddress in interface IOFilter
 
 
Copyright © GigaSpaces.