org.gudy.azureus2.pluginsimpl.local.messaging
Interface GenericMessageConnectionAdapter

All Known Implementing Classes:
GenericMessageConnectionDirect, GenericMessageConnectionIndirect

public interface GenericMessageConnectionAdapter


Nested Class Summary
static interface GenericMessageConnectionAdapter.ConnectionListener
           
 
Method Summary
 void accepted()
           
 void addInboundRateLimiter(RateLimiter limiter)
           
 void addOutboundRateLimiter(RateLimiter limiter)
           
 void close()
           
 void connect(ByteBuffer initial_data, GenericMessageConnectionAdapter.ConnectionListener listener)
           
 GenericMessageEndpoint getEndpoint()
           
 int getMaximumMessageSize()
           
 int getTransportType()
           
 String getType()
           
 void removeInboundRateLimiter(RateLimiter limiter)
           
 void removeOutboundRateLimiter(RateLimiter limiter)
           
 void send(PooledByteBuffer message)
           
 void setOwner(GenericMessageConnectionImpl _owner)
           
 

Method Detail

setOwner

void setOwner(GenericMessageConnectionImpl _owner)

getEndpoint

GenericMessageEndpoint getEndpoint()

getMaximumMessageSize

int getMaximumMessageSize()

getType

String getType()

getTransportType

int getTransportType()

connect

void connect(ByteBuffer initial_data,
             GenericMessageConnectionAdapter.ConnectionListener listener)

accepted

void accepted()

send

void send(PooledByteBuffer message)
          throws MessageException
Throws:
MessageException

addInboundRateLimiter

void addInboundRateLimiter(RateLimiter limiter)

removeInboundRateLimiter

void removeInboundRateLimiter(RateLimiter limiter)

addOutboundRateLimiter

void addOutboundRateLimiter(RateLimiter limiter)

removeOutboundRateLimiter

void removeOutboundRateLimiter(RateLimiter limiter)

close

void close()
           throws MessageException
Throws:
MessageException