public interface PacketWriter
Modifier and Type | Method and Description |
---|---|
void |
write(Element stanza)
Write a element to Stream.
|
void |
write(Element stanza,
AsyncCallback asyncCallback)
Write a (IQ) stanza element to Stream and register callback with default
timeout.
|
void |
write(Element stanza,
Long timeout,
AsyncCallback asyncCallback)
Write a (IQ) stanza element to Stream and register callback with given
timeout.
|
void write(Element stanza) throws JaxmppException
stanza
- Element to writeJaxmppException
void write(Element stanza, AsyncCallback asyncCallback) throws JaxmppException
stanza
- Element to writeasyncCallback
- AsyncCallback to registerJaxmppException
void write(Element stanza, Long timeout, AsyncCallback asyncCallback) throws JaxmppException
stanza
- stanza Element to writetimeout
- time after which will be execute AsyncCallback.onTimeout()asyncCallback
- asyncCallback AsyncCallback to registerJaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.