1 23 24 29 30 package com.sun.ejb.spi.sfsb.store; 31 32 36 public class SFSBBeanState { 37 38 39 public SFSBBeanState(String clusterId, long containerId, 40 Object sessionId, long lastAccess, 41 boolean isNew, byte[] state, 42 SFSBStoreManager storeManager) 43 { 44 _clusterId = clusterId; 45 _containerId = containerId; 46 _id = sessionId; 47 _lastAccess = lastAccess; 48 _isNew = isNew; 49 _state = state; 50 _storeManager = storeManager; 51 } 52 53 public String getClusterId() { 54 return _clusterId; 55 } 56 57 public long getContainerId() { 58 return _containerId; 59 } 60 61 64 public Object getId() { 65 return _id; 66 } 67 68 71 public long getLastAccess() { 72 return _lastAccess; 73 } 74 75 78 public long getTxCheckpointDuration() { 79 return _txCheckpointDuration; 80 } 81 82 87 public void setTxCheckpointDuration(long value) { 88 _txCheckpointDuration = value; 89 } 90 91 94 public boolean isNew() { 95 return _isNew; 96 } 97 98 101 public byte[] getState() { 102 return _state; 103 } 104 105 public SFSBStoreManager getSFSBStoreManager() { 106 return _storeManager; 107 } 108 109 private String _clusterId; 110 private long _containerId; 111 private Object _id = null; 112 private long _lastAccess = 0L; 113 private long _txCheckpointDuration = 0L; 114 private boolean _isNew = false; 115 private byte[] _state = null; 116 private SFSBStoreManager _storeManager; 117 118 } 119 | Popular Tags |