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