org.gudy.azureus2.plugins.messaging.generic
Interface GenericMessageConnection

All Known Implementing Classes:
GenericMessageConnectionImpl, SESTSConnectionImpl

public interface GenericMessageConnection


Field Summary
static int TT_INDIRECT
           
static int TT_NONE
           
static int TT_TCP
           
static int TT_UDP
           
 
Method Summary
 void addInboundRateLimiter(RateLimiter limiter)
           
 void addListener(GenericMessageConnectionListener listener)
           
 void addOutboundRateLimiter(RateLimiter limiter)
           
 void close()
           
 void connect()
           
 GenericMessageEndpoint getEndpoint()
           
 int getMaximumMessageSize()
           
 int getTransportType()
           
 java.lang.String getType()
           
 void removeInboundRateLimiter(RateLimiter limiter)
           
 void removeListener(GenericMessageConnectionListener listener)
           
 void removeOutboundRateLimiter(RateLimiter limiter)
           
 void send(PooledByteBuffer message)
           
 

Field Detail

TT_NONE

static final int TT_NONE
See Also:
Constant Field Values

TT_TCP

static final int TT_TCP
See Also:
Constant Field Values

TT_UDP

static final int TT_UDP
See Also:
Constant Field Values

TT_INDIRECT

static final int TT_INDIRECT
See Also:
Constant Field Values
Method Detail

getEndpoint

GenericMessageEndpoint getEndpoint()

connect

void connect()
             throws MessageException
Throws:
MessageException

send

void send(PooledByteBuffer message)
          throws MessageException
Throws:
MessageException

close

void close()
           throws MessageException
Throws:
MessageException

getMaximumMessageSize

int getMaximumMessageSize()

getType

java.lang.String getType()

getTransportType

int getTransportType()

addInboundRateLimiter

void addInboundRateLimiter(RateLimiter limiter)

removeInboundRateLimiter

void removeInboundRateLimiter(RateLimiter limiter)

addOutboundRateLimiter

void addOutboundRateLimiter(RateLimiter limiter)

removeOutboundRateLimiter

void removeOutboundRateLimiter(RateLimiter limiter)

addListener

void addListener(GenericMessageConnectionListener listener)

removeListener

void removeListener(GenericMessageConnectionListener listener)