public class BoshSession extends Object
Constructor and Description |
---|
BoshSession(String def_domain,
tigase.xmpp.JID dataReceiver,
BoshSessionTaskHandler handler,
String hostname,
int maxWaitingPackets)
Creates a new
BoshSession instance. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Method description
|
void |
disconnected(BoshIOService bios)
Method description
|
tigase.xmpp.JID |
getDataReceiver()
Method description
|
String |
getDomain()
Method description
|
String |
getSessionId()
Method description
|
UUID |
getSid()
Method description
|
void |
init(Packet packet,
BoshIOService service,
long max_wait,
long min_polling,
long max_inactivity,
int concurrent_requests,
int hold_requests,
long max_pause,
int max_batch_size,
long batch_queue_timeout,
Queue<Packet> out_results) |
protected void |
init(Packet packet,
BoshIOService service,
long max_wait,
long min_polling,
long max_inactivity,
int concurrent_requests,
int hold_requests,
long max_pause,
int max_batch_size,
long batch_queue_timeout,
Queue<Packet> out_results,
boolean preBindEnabled)
Method description
|
void |
processPacket(Packet packet,
Queue<Packet> out_results)
Method description
|
void |
processSocketPacket(Packet packet,
BoshIOService service,
Queue<Packet> out_results)
Method description
|
void |
sendWaitingPackets()
Method description
|
void |
setDataReceiver(tigase.xmpp.JID dataReceiver)
Method description
|
void |
setUserJid(String jid)
Method description
|
boolean |
task(Queue<Packet> out_results,
TimerTask tt)
Method description
|
void |
terminateBoshSession()
Method description
|
public BoshSession(String def_domain, tigase.xmpp.JID dataReceiver, BoshSessionTaskHandler handler, String hostname, int maxWaitingPackets)
BoshSession
instance.def_domain
- dataReceiver
- handler
- public void close()
public void disconnected(BoshIOService bios)
bios
- public void init(Packet packet, BoshIOService service, long max_wait, long min_polling, long max_inactivity, int concurrent_requests, int hold_requests, long max_pause, int max_batch_size, long batch_queue_timeout, Queue<Packet> out_results)
protected void init(Packet packet, BoshIOService service, long max_wait, long min_polling, long max_inactivity, int concurrent_requests, int hold_requests, long max_pause, int max_batch_size, long batch_queue_timeout, Queue<Packet> out_results, boolean preBindEnabled)
packet
- service
- max_wait
- min_polling
- max_inactivity
- concurrent_requests
- hold_requests
- max_pause
- max_batch_size
- batch_queue_timeout
- out_results
- public void processPacket(Packet packet, Queue<Packet> out_results)
packet
- out_results
- public void processSocketPacket(Packet packet, BoshIOService service, Queue<Packet> out_results)
packet
- service
- out_results
- public void sendWaitingPackets()
public boolean task(Queue<Packet> out_results, TimerTask tt)
out_results
- tt
- public void terminateBoshSession()
public tigase.xmpp.JID getDataReceiver()
public String getDomain()
public String getSessionId()
public UUID getSid()
public void setDataReceiver(tigase.xmpp.JID dataReceiver)
dataReceiver
- public void setUserJid(String jid)
jid
- Copyright © 2014 "Tigase, Inc.". All rights reserved.