Methods Summary |
---|
public com.aelitis.azureus.core.peermanager.messaging.Message | deserialize(DirectByteBuffer data, byte version)
if( data != null && data.hasRemaining( DirectByteBuffer.SS_MSG ) ) {
throw new MessageException( "[" +getID() +"] decode error: payload not empty" );
}
if( data != null ) data.returnToPool();
return new BTKeepAlive(version);
|
public void | destroy()
if( buffer != null ) {
buffer[0].returnToPool();
}
|
public com.aelitis.azureus.core.peermanager.messaging.Message | getBaseMessage() return this;
|
public DirectByteBuffer[] | getData() return new DirectByteBuffer[]{};
|
public java.lang.String | getDescription() return BTMessage.ID_BT_KEEP_ALIVE;
|
public java.lang.String | getFeatureID() return BTMessage.BT_FEATURE_ID;
|
public int | getFeatureSubID() return BTMessage.SUBID_BT_KEEP_ALIVE;
|
public java.lang.String | getID() return BTMessage.ID_BT_KEEP_ALIVE;
|
public byte[] | getIDBytes() return BTMessage.ID_BT_KEEP_ALIVE_BYTES;
|
public int | getPriority() return RawMessage.PRIORITY_LOW;
|
public DirectByteBuffer[] | getRawData()
if( buffer == null ) {
DirectByteBuffer dbb = DirectByteBufferPool.getBuffer( DirectByteBuffer.AL_MSG_BT_KEEPALIVE, 4 );
dbb.putInt( DirectByteBuffer.SS_BT, 0 );
dbb.flip( DirectByteBuffer.SS_BT );
buffer = new DirectByteBuffer[]{ dbb };
}
return buffer;
|
public int | getType() return Message.TYPE_PROTOCOL_PAYLOAD;
|
public byte | getVersion() return version;
|
public boolean | isNoDelay() return false;
|
public com.aelitis.azureus.core.peermanager.messaging.Message[] | messagesToRemove() return null;
|