ClosureCleaner

org.apache.flinkx.api.ClosureCleaner

A cleaner that renders closures serializable if they can be done so safely.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def clean(closure: AnyRef, checkSerializable: Boolean, cleanTransitively: Boolean): Unit

Clean the given closure in place.

Clean the given closure in place.

More specifically, this renders the given closure serializable as long as it does not explicitly reference unserializable objects.

Value parameters

checkSerializable

whether to verify that the closure is serializable after cleaning

cleanTransitively

whether to clean enclosing closures transitively

closure

the closure to clean

Attributes

def ensureSerializable(func: AnyRef): Unit
def getClassReader(cls: Class[_]): ClassReader
def scalaClean[T <: AnyRef](fun: T, checkSerializable: Boolean, cleanTransitively: Boolean): T

Concrete fields

lazy val log: Logger