public void setState ( TransferState state ) { synchronized ( this ) { this . state = state ; } for ( TransferStateChangeListener listener : stateChangeListeners ) { listener . transferStateChanged ( this , state ) ; } }
Sets the current state of this transfer .