1 16 17 package org.apache.catalina.cluster.util; 18 19 29 30 public class LinkObject { 31 32 private Object payload; 33 private LinkObject next; 34 private String key ; 35 36 41 public LinkObject(String key,Object payload) { 42 this.payload = payload; 43 this.next = null; 44 this.key = key ; 45 } 46 47 51 public void append(LinkObject next) { 52 this.next = next; 53 } 54 55 59 public LinkObject next() { 60 return next; 61 } 62 63 67 public Object data() { 68 return payload; 69 } 70 71 75 public Object getKey() { 76 return key; 77 } 78 79 } 80 | Popular Tags |