public interface ReplicationContent
Modifier and Type | Field and Description |
---|---|
static ReplicationContent |
VOID
Implements a void replication content to be used for delete or flush
actions.
|
Modifier and Type | Method and Description |
---|---|
void |
acquire(java.lang.String agentName)
Marks this content to be used by the given agent.
|
void |
destroy()
Destroy the cached content.
|
java.util.Collection<java.lang.String> |
getAcquiredBy()
Returns the collection of agent names that use this content.
|
long |
getContentLength()
Return the content length if known
|
java.lang.String |
getContentType()
Get the content type
|
ReplicationContentFacade |
getFacade()
Returns the facade for this content.
|
java.io.InputStream |
getInputStream()
Get the input stream for the content.
|
long |
getLastModified()
Returns the last modified time or -1 if unknown
|
void |
release(java.lang.String agentName)
Unmarks this content for be used by the given agent.
|
static final ReplicationContent VOID
java.io.InputStream getInputStream() throws java.io.IOException
null
if the underlying data source does not
exist anymore.java.io.IOException
- if an I/O error occurrsjava.lang.String getContentType()
long getContentLength()
long getLastModified()
void acquire(java.lang.String agentName)
agentName
- name of the agentvoid release(java.lang.String agentName)
agentName
- The name of the agent.java.util.Collection<java.lang.String> getAcquiredBy()
void destroy()
ReplicationContentFacade getFacade()
Copyright © 2010 - 2020 Adobe. All Rights Reserved