AbstractLinkedProcessorSlot.java 473 B

12345678910111213141516171819202122
  1. package cn.nosum.gateway.slot;
  2. public abstract class AbstractLinkedProcessorSlot<T> implements ProcessorSlot<T> {
  3. private AbstractLinkedProcessorSlot<T> next = null;
  4. public void fireExec(T t) throws Throwable {
  5. if (next != null) {
  6. next.exec(t);
  7. }
  8. }
  9. public AbstractLinkedProcessorSlot<T> getNext() {
  10. return next;
  11. }
  12. public void setNext(AbstractLinkedProcessorSlot<T> next) {
  13. this.next = next;
  14. }
  15. }