public class ProtonHandler extends ProtonInitializable implements org.apache.qpid.proton.engine.SaslListener
| Modifier and Type | Field and Description |
|---|---|
protected Set<Runnable> |
afterFlushSet |
protected boolean |
dataReceived |
protected ReadyListener |
readyListener |
protected boolean |
receivedFirstPacket |
| Constructor and Description |
|---|
ProtonHandler(io.netty.channel.EventLoop workerExecutor,
ArtemisExecutor poolExecutor,
boolean isServer) |
| Modifier and Type | Method and Description |
|---|---|
ProtonHandler |
addEventHandler(EventHandler handler) |
void |
afterFlush(Runnable runnable) |
int |
capacity() |
boolean |
checkDataReceived() |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition,
AMQPConnectionContext connectionContext) |
void |
createClientSASL() |
void |
createServerSASL(String[] mechanisms) |
void |
flush() |
void |
flushBytes() |
org.apache.qpid.proton.engine.Connection |
getConnection() |
long |
getCreationTime() |
SASLResult |
getSASLResult() |
org.apache.qpid.proton.engine.Transport |
getTransport() |
void |
handleError(Exception e) |
void |
inputBuffer(io.netty.buffer.ByteBuf buffer) |
void |
instantFlush() |
boolean |
isHandler() |
void |
onSaslChallenge(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
onSaslInit(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
onSaslMechanisms(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
onSaslOutcome(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
onSaslResponse(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport) |
void |
open(String containerId,
Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties) |
void |
requireHandler() |
void |
runAfterFlush() |
void |
runLater(Runnable runnable) |
void |
runNow(Runnable runnable) |
void |
runOnPool(Runnable runnable) |
void |
scheduledFlush()
We cannot flush until the initial handshake was finished.
|
void |
setChosenMechanism(ServerSASL chosenMechanism) |
void |
setClientMechanism(ClientSASL saslClientMech) |
Long |
tick(boolean firstTick) |
initialize, isInitializedprotected volatile boolean dataReceived
protected boolean receivedFirstPacket
protected final ReadyListener readyListener
public ProtonHandler(io.netty.channel.EventLoop workerExecutor,
ArtemisExecutor poolExecutor,
boolean isServer)
public void afterFlush(Runnable runnable)
public void runAfterFlush()
public Long tick(boolean firstTick)
public void scheduledFlush()
public int capacity()
public boolean isHandler()
public void requireHandler()
public org.apache.qpid.proton.engine.Transport getTransport()
public org.apache.qpid.proton.engine.Connection getConnection()
public ProtonHandler addEventHandler(EventHandler handler)
public void createServerSASL(String[] mechanisms)
public void instantFlush()
public void flushBytes()
public SASLResult getSASLResult()
public void inputBuffer(io.netty.buffer.ByteBuf buffer)
public boolean checkDataReceived()
public long getCreationTime()
public void runOnPool(Runnable runnable)
public void runNow(Runnable runnable)
public void runLater(Runnable runnable)
public void flush()
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition,
AMQPConnectionContext connectionContext)
public void onSaslInit(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslInit in interface org.apache.qpid.proton.engine.SaslListenerpublic void onSaslResponse(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslResponse in interface org.apache.qpid.proton.engine.SaslListenerpublic void onSaslMechanisms(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslMechanisms in interface org.apache.qpid.proton.engine.SaslListenerpublic void onSaslChallenge(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslChallenge in interface org.apache.qpid.proton.engine.SaslListenerpublic void onSaslOutcome(org.apache.qpid.proton.engine.Sasl sasl,
org.apache.qpid.proton.engine.Transport transport)
onSaslOutcome in interface org.apache.qpid.proton.engine.SaslListenerpublic void handleError(Exception e)
public void open(String containerId, Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties)
public void setChosenMechanism(ServerSASL chosenMechanism)
public void setClientMechanism(ClientSASL saslClientMech)
public void createClientSASL()
Copyright © 2021 The Apache Software Foundation. All rights reserved.