public abstract class AbstractExecutorServiceAsyncSession<E extends ExecutorService> extends AbstractAsyncSession
AsyncSession interface that uses an
ExecutorService object for running asynchronous tasks.session| Constructor and Description |
|---|
AbstractExecutorServiceAsyncSession(Session session) |
createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, delete, getContentStream, getLatestDocumentVersion, getLatestDocumentVersion, getLatestDocumentVersion, getLatestDocumentVersion, getObject, getObject, getObjectByPath, getObjectByPath, getSession, storeContentStreampublic AbstractExecutorServiceAsyncSession(Session session)
public abstract E getExecutorService()
ExecutorService object.public <T> Future<T> submit(AbstractExecutorServiceAsyncSession.SessionCallable<T> task)
ExecutorService.submit(Callable)public Future<ObjectType> getTypeDefinition(String typeId)
public Future<ObjectType> createType(TypeDefinition type)
public Future<ObjectType> updateType(TypeDefinition type)
public Future<CmisObject> getObject(ObjectId objectId, OperationContext context)
public Future<CmisObject> getObject(String objectId, OperationContext context)
public Future<CmisObject> getObjectByPath(String path, OperationContext context)
public Future<CmisObject> getObjectByPath(String parentPath, String name, OperationContext context)
public Future<Document> getLatestDocumentVersion(ObjectId objectId, boolean major, OperationContext context)
public Future<Document> getLatestDocumentVersion(String objectId, boolean major, OperationContext context)
public Future<ObjectId> createDocument(Map<String,?> properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ObjectId> createDocumentFromSource(ObjectId source, Map<String,?> properties, ObjectId folderId, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ObjectId> createFolder(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ObjectId> createPolicy(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ObjectId> createItem(Map<String,?> properties, ObjectId folderId, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ObjectId> createRelationship(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public Future<ContentStream> getContentStream(ObjectId docId, String streamId, BigInteger offset, BigInteger length)
public Future<ContentStream> storeContentStream(ObjectId docId, String streamId, BigInteger offset, BigInteger length, OutputStream target)
public Future<List<String>> deleteTree(ObjectId folderId, boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
public Future<Acl> applyAcl(ObjectId objectId, List<Ace> addAces, List<Ace> removeAces, AclPropagation aclPropagation)
public void shutdown()
ExecutorService.shutdown()public List<Runnable> shutdownNow()
ExecutorService.shutdownNow()public boolean isShutdown()
ExecutorService.isShutdown()public boolean isTerminated()
ExecutorService.isTerminated()public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionExecutorService.awaitTermination(long, TimeUnit)Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.