public final class CoreSessionCallback extends Object implements SessionCallback
Constructor and Description |
---|
CoreSessionCallback(String name,
ProtocolManager protocolManager,
Channel channel,
RemotingConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
closed() |
void |
disconnect(ServerConsumer consumerId,
String queueName) |
boolean |
hasCredits(ServerConsumer consumer)
This one gives a chance for Proton to have its own flow control.
|
boolean |
isWritable(ReadyListener callback) |
int |
sendLargeMessage(ServerMessage message,
ServerConsumer consumer,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumer,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(ServerMessage message,
ServerConsumer consumer,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
public CoreSessionCallback(String name, ProtocolManager protocolManager, Channel channel, RemotingConnection connection)
public boolean isWritable(ReadyListener callback)
isWritable
in interface SessionCallback
public int sendLargeMessage(ServerMessage message, ServerConsumer consumer, long bodySize, int deliveryCount)
sendLargeMessage
in interface SessionCallback
public int sendLargeMessageContinuation(ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse)
sendLargeMessageContinuation
in interface SessionCallback
public int sendMessage(ServerMessage message, ServerConsumer consumer, int deliveryCount)
sendMessage
in interface SessionCallback
public void sendProducerCreditsMessage(int credits, SimpleString address)
sendProducerCreditsMessage
in interface SessionCallback
public void sendProducerCreditsFailMessage(int credits, SimpleString address)
sendProducerCreditsFailMessage
in interface SessionCallback
public void closed()
closed
in interface SessionCallback
public void disconnect(ServerConsumer consumerId, String queueName)
disconnect
in interface SessionCallback
public boolean hasCredits(ServerConsumer consumer)
SessionCallback
hasCredits
in interface SessionCallback
Copyright © 2016 JBoss by Red Hat. All rights reserved.