public class ObjectsPoolImpl
extends java.lang.Object
implements com.streamscape.sef.pool.ObjectsPool
Title: Service Event Fabric Core
Description: Objects pool implementation.
Copyright: Copyright (c) 2015
Company: StreamScape Technologies
Constructor and Description |
---|
ObjectsPoolImpl(int maxPoolSize,
com.streamscape.sef.pool.PoolObjectsCreator creator) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get() |
java.lang.Object |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
int |
getAvailableObjectsCount() |
int |
getCurrentPoolSize() |
int |
getMaxPoolSize() |
java.lang.Object |
getNoWait() |
java.lang.String |
getPoolName() |
com.streamscape.sef.pool.PoolObjectsCreator |
getPoolObjectsCreator() |
boolean |
isRunning() |
void |
release(java.lang.Object object) |
void |
releaseAndRemove(java.lang.Object object) |
void |
removeExpired(long expirationTimeout) |
void |
start() |
void |
stop() |
void |
stop(long timeout) |
public ObjectsPoolImpl(int maxPoolSize, com.streamscape.sef.pool.PoolObjectsCreator creator)
public java.lang.String getPoolName()
getPoolName
in interface com.streamscape.sef.pool.ObjectsPool
public com.streamscape.sef.pool.PoolObjectsCreator getPoolObjectsCreator()
getPoolObjectsCreator
in interface com.streamscape.sef.pool.ObjectsPool
public int getMaxPoolSize()
getMaxPoolSize
in interface com.streamscape.sef.pool.ObjectsPool
public int getCurrentPoolSize()
getCurrentPoolSize
in interface com.streamscape.sef.pool.ObjectsPool
public int getAvailableObjectsCount()
getAvailableObjectsCount
in interface com.streamscape.sef.pool.ObjectsPool
public java.lang.Object get() throws java.lang.InterruptedException, java.lang.Exception
get
in interface com.streamscape.sef.pool.ObjectsPool
java.lang.InterruptedException
java.lang.Exception
public java.lang.Object get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.lang.Exception
get
in interface com.streamscape.sef.pool.ObjectsPool
java.lang.InterruptedException
java.lang.Exception
public java.lang.Object getNoWait() throws java.lang.Exception
getNoWait
in interface com.streamscape.sef.pool.ObjectsPool
java.lang.Exception
public void release(java.lang.Object object)
release
in interface com.streamscape.sef.pool.ObjectsPool
public void releaseAndRemove(java.lang.Object object)
releaseAndRemove
in interface com.streamscape.sef.pool.ObjectsPool
public void start()
start
in interface com.streamscape.sef.pool.ObjectsPool
public void stop()
stop
in interface com.streamscape.sef.pool.ObjectsPool
public void stop(long timeout)
stop
in interface com.streamscape.sef.pool.ObjectsPool
public boolean isRunning()
isRunning
in interface com.streamscape.sef.pool.ObjectsPool
public void removeExpired(long expirationTimeout)
removeExpired
in interface com.streamscape.sef.pool.ObjectsPool
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.