Interface FragmentedMessageHolder
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
BrowserLiveReload
- All Known Implementing Classes:
AtmospherePushConnection
Manages fragmented messages during Atmosphere push communication.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearFragmentedMessage(org.atmosphere.cpr.AtmosphereResource resource) Clears the partial message that is currently being received.getOrCreateFragmentedMessage(org.atmosphere.cpr.AtmosphereResource resource) Gets the partial message that is currently being received, if any.
-
Method Details
-
getOrCreateFragmentedMessage
AtmospherePushConnection.FragmentedMessage getOrCreateFragmentedMessage(org.atmosphere.cpr.AtmosphereResource resource) Gets the partial message that is currently being received, if any.- Parameters:
resource- the resource to get the partial message from- Returns:
- the fragmented message being received or a new empty instance
-
clearFragmentedMessage
void clearFragmentedMessage(org.atmosphere.cpr.AtmosphereResource resource) Clears the partial message that is currently being received. Should be called when the whole message has been received.- Parameters:
resource- the related resource
-