public class OwAppCounterBag extends OwAttributeBagCodec
This class represent an application counter generator
A bag is used for the unique index storage.
The index name uniqueness is guaranteed per virtual machine.
Attribute bag access is also synchronized per virtual machine.
This class is not suitable for cluster based usage.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwAttributeBag
,
OwAttributeBagWriteable
OwCookieStoreCodec.OwTimedCookie, OwCookieStoreCodec.OwTimedCookieValue
CONFIGURATION_ATTRIBUTEBAGS_ELEMENT, CONFIGURATION_CODEC_PREFIX_ATTRIBUTE, CONFIGURATION_COOKIE_PREFIX_ATTRIBUTE, CONFIGURATION_USER_ATTRIBUTE, DEFAULT_CODEC_BAGS_PREFIX, DEFAULT_CONFIG_BAG_USER_NAME, DEFAULT_COOKIE_BAGS_PREFIX
CONFIGURATION_BOOTSTRAP_ELEMENT_NAME, CONFIGURATION_DAYS_ATTRIBUTE, CONFIGURATION_HOURS_ATTRIBUTE, CONFIGURATION_MINUTES_ATTRIBUTE, CONFIGURATION_NAME_ATTRIBUTE, CONFIGURATION_SECONDS_ATTRIBUTE, CONFIGURATION_URL_LIFE_TIME_ELEMENT, CONFIGURATION_URL_PARAMETER_ELEMENT, DEFAULT_CONFIG_URL_LIFE_TIME, DEFAULT_URL_PARAMETER_NAME
Constructor and Description |
---|
OwAppCounterBag(OwNetwork network_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected OwAttributeBagWriteable |
getBag(String bagName_p,
boolean create_p)
Get the bag from the network
|
protected long |
getInitialValueForIndex()
Get the start value for index.
|
protected String |
masterBagName()
Get the name for the master bag.
|
addCookieValue, cookieBagName, cookieTableBagName, createTimedCookieCollectList, getCookieBag, getCookieTableBag, getCookieValue, getMasterBag, getNextUnqiueNameIndex, loadAttributeBagsConfiguation, remove
canDecode, collectExpiredNames, createCookie, decode, encode, loadUrlLifeTimeConfig, loadUrlParameterConfig
public OwAppCounterBag(OwNetwork network_p)
protected OwAttributeBagWriteable getBag(String bagName_p, boolean create_p) throws Exception
getBag
in class OwAttributeBagCodec
bagName_p
- - the name of the bagcreate_p
- if true
the given bag should be created if not foundException
protected long getInitialValueForIndex()
OwAttributeBagCodec
getInitialValueForIndex
in class OwAttributeBagCodec
protected String masterBagName()
masterBagName
in class OwAttributeBagCodec
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.