Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65164443
RemoteCacheManagerHolder.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 1, 09:41
Size
597 B
Mime Type
text/x-java
Expires
Mon, Jun 3, 09:41 (2 d)
Engine
blob
Format
Raw Data
Handle
18016341
Attached To
R7507 YCSB
RemoteCacheManagerHolder.java
View Options
package
com.yahoo.ycsb.db
;
import
java.util.Properties
;
import
org.infinispan.client.hotrod.RemoteCacheManager
;
public
class
RemoteCacheManagerHolder
{
private
static
volatile
RemoteCacheManager
cacheManager
=
null
;
private
RemoteCacheManagerHolder
()
{}
public
static
RemoteCacheManager
getInstance
(
Properties
props
){
RemoteCacheManager
result
=
cacheManager
;
if
(
result
==
null
){
synchronized
(
RemoteCacheManagerHolder
.
class
)
{
result
=
cacheManager
;
if
(
result
==
null
)
{
cacheManager
=
result
=
new
RemoteCacheManager
(
props
);
}
}
}
return
result
;
}
}
Event Timeline
Log In to Comment