public class AsyncSessionPersisterRunnable extends AbstractSessionPersister implements java.lang.Runnable
| Constructor and Description |
|---|
AsyncSessionPersisterRunnable() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<PersistedSession> |
deduplicateQueuedSessions(java.util.List<AsyncSessionPersisterOperation> fifoSessionHolders,
java.util.Set<java.lang.String> sessionsToRemove) |
protected java.util.List<AsyncSessionPersisterOperation> |
drainQueue() |
java.util.concurrent.BlockingQueue<AsyncSessionPersisterOperation> |
getQueue() |
void |
init() |
boolean |
isSessionScheduledForRemoval(java.lang.String id) |
protected void |
persistSessions(java.util.Collection<PersistedSession> withoutDuplicates) |
protected void |
persistsSessionsFromQueue() |
protected boolean |
processingAllowed() |
protected void |
removeSessions(java.util.Set<java.lang.String> ids) |
void |
run() |
void |
scheduleSessionForRemoval(java.lang.String id) |
void |
setDrainingAdaptiveAlgorithm(DrainingAdaptiveAlgorithm drainingAdaptiveAlgorithm) |
void |
setModelService(ModelService modelService) |
void |
setStoredHttpSessionDao(StoredHttpSessionDao storedHttpSessionDao) |
void |
setTenant(Tenant tenant) |
updateModelIfNecessary@PostConstruct public void init()
public void run()
run in interface java.lang.Runnableprotected boolean processingAllowed()
protected void persistsSessionsFromQueue()
protected java.util.Collection<PersistedSession> deduplicateQueuedSessions(java.util.List<AsyncSessionPersisterOperation> fifoSessionHolders, java.util.Set<java.lang.String> sessionsToRemove)
protected java.util.List<AsyncSessionPersisterOperation> drainQueue()
protected void removeSessions(java.util.Set<java.lang.String> ids)
protected void persistSessions(java.util.Collection<PersistedSession> withoutDuplicates)
public java.util.concurrent.BlockingQueue<AsyncSessionPersisterOperation> getQueue()
public boolean isSessionScheduledForRemoval(java.lang.String id)
public void scheduleSessionForRemoval(java.lang.String id)
public void setStoredHttpSessionDao(StoredHttpSessionDao storedHttpSessionDao)
public void setModelService(ModelService modelService)
public void setTenant(Tenant tenant)
public void setDrainingAdaptiveAlgorithm(DrainingAdaptiveAlgorithm drainingAdaptiveAlgorithm)
Copyright © 2018 SAP SE. All Rights Reserved.