GigaSpaces XAP 9.7.2 API

com.gigaspaces.lrmi.nio.filters
Class IOStreamCompressionFilter

java.lang.Object
  extended by 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

Nested Class Summary
static class IOStreamCompressionFilter.Algo
           
 
Constructor Summary
IOStreamCompressionFilter(IOStreamCompressionFilter.Algo algo)
           
 
Method Summary
 void setCompressionLevel(int compressionLevel)
           
 byte[] unrwap(ByteBuffer buf)
           
 byte[] wrap(ByteBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOStreamCompressionFilter

public IOStreamCompressionFilter(IOStreamCompressionFilter.Algo algo)
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.