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(String agentName)
Marks this content to be used by the given agent.
|
void |
destroy()
Destroy the cached content.
|
Collection<String> |
getAcquiredBy()
Returns the collection of agent names that use this content.
|
long |
getContentLength()
Return the content length if known
|
String |
getContentType()
Get the content type
|
ReplicationContentFacade |
getFacade()
Returns the facade for this content.
|
InputStream |
getInputStream()
Get the input stream for the content.
|
long |
getLastModified()
Returns the last modified time or -1 if unknown
|
void |
release(String agentName)
Unmarks this content for be used by the given agent.
|
static final ReplicationContent VOID
InputStream getInputStream() throws IOException
null
if the underlying data source does not
exist anymore.IOException
- if an I/O error occurrsString getContentType()
long getContentLength()
long getLastModified()
void acquire(String agentName)
agentName
- name of the agentvoid release(String agentName)
agentName
- The name of the agent.Collection<String> getAcquiredBy()
void destroy()
ReplicationContentFacade getFacade()
Copyright © 2010 - 2020 Adobe. All Rights Reserved