com.hazelcast.client
Class Packet

java.lang.Object
  extended by com.hazelcast.client.Packet

public class Packet
extends Object


Constructor Summary
Packet()
           
 
Method Summary
 long getCallId()
           
 byte[] getKey()
           
 int getKeyHash()
           
 long getLongValue()
           
 String getName()
           
 ClusterOperation getOperation()
           
 byte getResponseType()
           
 int getThreadId()
           
 long getTimeout()
           
 long getTtl()
           
 byte[] getValue()
           
 int getValueHash()
           
 void readFrom(PacketReader packetReader, DataInputStream dis)
           
 void reset()
           
 void set(String name, ClusterOperation operation, byte[] key, byte[] value)
           
 void setCallId(long callId)
           
 void setKey(byte[] key)
           
 void setKeyHash(int keyHash)
           
 void setLongValue(long longValue)
           
 void setName(String name)
           
 void setOperation(ClusterOperation operation)
           
 void setResponseType(byte responseType)
           
 void setThreadId(int threadId)
           
 void setTimeout(long timeout)
           
 void setTtl(long ttl)
           
 void setValue(byte[] value)
           
 void setValueHash(int valueHash)
           
 String toString()
           
 void writeTo(PacketWriter packetWriter, DataOutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Packet

public Packet()
Method Detail

reset

public void reset()

writeTo

public void writeTo(PacketWriter packetWriter,
                    DataOutputStream outputStream)
             throws IOException
Throws:
IOException

readFrom

public void readFrom(PacketReader packetReader,
                     DataInputStream dis)
              throws IOException
Throws:
IOException

set

public void set(String name,
                ClusterOperation operation,
                byte[] key,
                byte[] value)

getKey

public byte[] getKey()

setKey

public void setKey(byte[] key)

getValue

public byte[] getValue()

setValue

public void setValue(byte[] value)

setCallId

public void setCallId(long callId)

getCallId

public long getCallId()

getName

public String getName()

setName

public void setName(String name)

getOperation

public ClusterOperation getOperation()

setOperation

public void setOperation(ClusterOperation operation)

getThreadId

public int getThreadId()

setThreadId

public void setThreadId(int threadId)

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getLongValue

public long getLongValue()

setLongValue

public void setLongValue(long longValue)

getResponseType

public byte getResponseType()

setResponseType

public void setResponseType(byte responseType)

getKeyHash

public int getKeyHash()

setKeyHash

public void setKeyHash(int keyHash)

getTtl

public long getTtl()

setTtl

public void setTtl(long ttl)

getValueHash

public int getValueHash()

setValueHash

public void setValueHash(int valueHash)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.