Public Member Functions | |
CCNFlowServer (ContentName name, Integer capacity, boolean persistent, CCNHandle handle) throws IOException | |
CCNFlowServer (String name, Integer capacity, CCNHandle handle) throws MalformedContentNameStringException, IOException | |
CCNFlowServer (Integer capacity, boolean persistent, CCNHandle handle) throws IOException | |
void | afterPutAction (ContentObject co) throws IOException |
If this is a non-persistent flow server, remove content objects after they have been read once; otherwise do nothing. | |
void | afterClose () throws IOException |
Do not force client to wait for content to drain -- if no one wants it, that's just fine. | |
Package Attributes | |
boolean | _persistent = true |
Unlike standard flow controllers, this class doesn't care if anyone ever reads its blocks -- it doesn't call waitForPutDrain. If no one is interested, it simply persists until deleted/cleared. This version of flow server holds blocks until they have been read once, manually removed or cleared, or the server is deleted by canceling all its registered prefixes. It does not signal an error if the blocks are never read.
void org.ccnx.ccn.impl.CCNFlowServer.afterPutAction | ( | ContentObject | co | ) | throws IOException |
If this is a non-persistent flow server, remove content objects after they have been read once; otherwise do nothing.
co | ContentObject to remove from flow controller. |
IOException | may be thrown by overriding subclasses |
Reimplemented from org.ccnx.ccn.impl.CCNFlowControl.