1 4 package com.tc.objectserver.lockmanager.api; 5 6 import com.tc.net.protocol.tcm.ChannelID; 7 import com.tc.object.lockmanager.api.LockLevel; 8 import com.tc.object.lockmanager.api.ThreadID; 9 10 import java.io.Serializable ; 11 12 public class ServerLockRequest implements Serializable { 13 14 private final long requestTime; 15 private final ChannelID channelID; 16 private final ThreadID threadID; 17 private final String lockLevel; 18 private final String channelAddr; 19 20 public ServerLockRequest(ChannelID channelID, String channelAddr, ThreadID threadID, int level, long requestTime) { 21 this.channelAddr = channelAddr; 22 this.channelID = channelID; 23 this.threadID = threadID; 24 this.requestTime = requestTime; 25 this.lockLevel = LockLevel.toString(level); 26 } 27 28 public String getChannelAddr() { 29 return this.channelAddr; 30 } 31 32 public ChannelID getChannelID() { 33 return channelID; 34 } 35 36 public String getLockLevel() { 37 return lockLevel; 38 } 39 40 public long getRequestTime() { 41 return requestTime; 42 } 43 44 public ThreadID getThreadID() { 45 return threadID; 46 } 47 } 48 | Popular Tags |