Skip to content

Commit

Permalink
added TP.setTimer()
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Oct 19, 2011
1 parent 5d0246e commit a060140
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/org/jgroups/protocols/TP.java
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,15 @@ public void setTimerThreadFactory(ThreadFactory factory) {

public TimeScheduler getTimer() {return timer;}

/**
* Sets a new timer. This should be done before the transport is initialized; be very careful, as replacing a
* running timer with tasks in it can wreak havoc !
* @param timer
*/
public void setTimer(TimeScheduler timer) {
this.timer=timer;
}

public ThreadFactory getThreadFactory() {
return global_thread_factory;
}
Expand Down

0 comments on commit a060140

Please sign in to comment.