public interface SerializableOnlyOverRemoting extends Serializable
Serializable only for sending over the Remoting Channel.
Usually it means that the object requires export of the class via Channel
and hudson.remoting.ExportTable.
Attempts to serialize the instance of this interface for different purposes lead to undefined behavior.| Modifier and Type | Method and Description |
|---|---|
default Channel |
getChannelForSerialization()
Gets current channel or fails with
NotSerializableException. |
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.ProtectedExternally.class) default Channel getChannelForSerialization() throws NotSerializableException
NotSerializableException.
This method is designed for serialization/deserialization methods in the channel.NotSerializableException - the calling thread has no associated channel.
In such case the object cannot be serialized.Copyright © 2004–2020. All rights reserved.