public class ProtonHandler extends ProtonInitializable implements org.apache.qpid.proton.engine.SaslListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dataReceived |
protected ReadyListener |
readyListener |
protected boolean |
receivedFirstPacket |
| Constructor and Description |
|---|
ProtonHandler(Executor flushExecutor,
boolean isServer) |
| Modifier and Type | Method and Description |
|---|---|
ProtonHandler |
addEventHandler(EventHandler handler) |
int |
capacity() |
boolean |
checkDataReceived() |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition) |
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 |
inputBuffer(io.netty.buffer.ByteBuf buffer) |
void |
lock() |
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 |
scheduledFlush()
We cannot flush until the initial handshake was finished.
|
void |
setChosenMechanism(ServerSASL chosenMechanism) |
void |
setClientMechanism(ClientSASL saslClientMech) |
Long |
tick(boolean firstTick) |
boolean |
tryLock(long time,
TimeUnit timeUnit) |
void |
unlock() |
initialise, isInitializedprotected volatile boolean dataReceived
protected boolean receivedFirstPacket
protected final ReadyListener readyListener
public ProtonHandler(Executor flushExecutor, boolean isServer)
public Long tick(boolean firstTick)
public void scheduledFlush()
public int capacity()
public void lock()
public void unlock()
public boolean tryLock(long time,
TimeUnit timeUnit)
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 flushBytes()
public SASLResult getSASLResult()
public void inputBuffer(io.netty.buffer.ByteBuf buffer)
public boolean checkDataReceived()
public long getCreationTime()
public void flush()
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
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 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 © 2018 The Apache Software Foundation. All Rights Reserved.