|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onebusaway.siri.core.SiriClientRequest
public class SiriClientRequest
Constructor Summary | |
---|---|
SiriClientRequest()
|
|
SiriClientRequest(SiriClientRequest request)
|
Method Summary | |
---|---|
void |
decrementRemainingReconnctionAttempts()
|
Object |
getChannelContext()
See setChannelContext(Object) . |
int |
getCheckStatusInterval()
|
String |
getCheckStatusUrl()
If set, this url should be used for check status requets, in lieu of the normal getTargetUrl() . |
int |
getConnectionErrorCount()
|
int |
getHeartbeatInterval()
|
long |
getInitialTerminationDuration()
|
String |
getManageSubscriptionUrl()
If set, this url should be used for subscription management requests (ex TerminateSubscriptionRequest), in lieu of the normal getTargetUrl() . |
Siri |
getPayload()
|
int |
getPollInterval()
When isSubscribe() is false, indicates how often we should poll
the SIRI endpoint with request-response, in seconds. |
int |
getReconnectionAttempts()
The number of times to attempt to reconnect when a client request fails. |
int |
getReconnectionInterval()
|
int |
getRemainingReconnectionAttempts()
|
String |
getTargetUrl()
|
ESiriVersion |
getTargetVersion()
|
void |
incrementConnectionErrorCount()
|
boolean |
isSubscribe()
If true, indicates that the client request is a publish-subscribe request. |
void |
resetConnectionErrorCount()
|
void |
resetConnectionStatistics()
Resets the values of getConnectionErrorCount() and
getRemainingReconnectionAttempts() to their default initial
values. |
void |
setChannelContext(Object channelContext)
If you wish to associate some channel-specific data with this subscription, you can supply it with this method. |
void |
setCheckStatusInterval(int checkStatusInterval)
|
void |
setCheckStatusUrl(String checkStatusUrl)
|
void |
setHeartbeatInterval(int heartbeatInterval)
|
void |
setInitialTerminationDuration(long initialTerminationDuration)
|
void |
setManageSubscriptionUrl(String manageSubscriptionUrl)
|
void |
setPayload(Siri payload)
|
void |
setPollInterval(int pollInterval)
When isSubscribe() is false, indicates how often we should poll
the SIRI endpoint with request-response, in seconds. |
void |
setReconnectionAttempts(int reconnectionAttempts)
Set the number of times to attempt to reconnect when a client request fails. |
void |
setReconnectionInterval(int reconnectionInterval)
|
void |
setSubscribe(boolean subscribe)
|
void |
setTargetUrl(String targetUrl)
|
void |
setTargetVersion(ESiriVersion targetVersion)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SiriClientRequest()
public SiriClientRequest(SiriClientRequest request)
Method Detail |
---|
public String getTargetUrl()
public void setTargetUrl(String targetUrl)
public String getManageSubscriptionUrl()
getTargetUrl()
.
public void setManageSubscriptionUrl(String manageSubscriptionUrl)
public String getCheckStatusUrl()
getTargetUrl()
.
public void setCheckStatusUrl(String checkStatusUrl)
public ESiriVersion getTargetVersion()
public void setTargetVersion(ESiriVersion targetVersion)
public boolean isSubscribe()
public void setSubscribe(boolean subscribe)
subscribe
- if true, indicates that the client request is a
publish-subscribe request. If false, indicates that we should
instead periodically poll the SIRI endpoint using request-response
instead.public int getPollInterval()
isSubscribe()
is false, indicates how often we should poll
the SIRI endpoint with request-response, in seconds. A value of zero (the
default) indicates that request should only be sent once and never polled
again.
public void setPollInterval(int pollInterval)
isSubscribe()
is false, indicates how often we should poll
the SIRI endpoint with request-response, in seconds. A value of zero
indicates that request should only be sent once and never polled again.
public int getReconnectionAttempts()
public void setReconnectionAttempts(int reconnectionAttempts)
reconnectionAttempts
- - the number of reconnection attemptspublic int getReconnectionInterval()
public void setReconnectionInterval(int reconnectionInterval)
reconnectionInterval
- time in secondspublic int getRemainingReconnectionAttempts()
public void decrementRemainingReconnctionAttempts()
public int getConnectionErrorCount()
public void incrementConnectionErrorCount()
public void resetConnectionErrorCount()
public void resetConnectionStatistics()
getConnectionErrorCount()
and
getRemainingReconnectionAttempts()
to their default initial
values.
public int getCheckStatusInterval()
public void setCheckStatusInterval(int checkStatusInterval)
public int getHeartbeatInterval()
public void setHeartbeatInterval(int heartbeatInterval)
public long getInitialTerminationDuration()
public void setInitialTerminationDuration(long initialTerminationDuration)
initialTerminationDuration
- time, in millisecondspublic Object getChannelContext()
setChannelContext(Object)
.
public void setChannelContext(Object channelContext)
SiriChannelInfo.getContext()
when the siri client notifies you of a
new service delivery in a SiriServiceDeliveryHandler
.
channelContext
- public Siri getPayload()
public void setPayload(Siri payload)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |