Scala, Scala Programming, Programming, Design Patterns, Singleton Design Pattern.
val id = 1 override def connect: String = s"singleton EC2MemOpt connection with session id ${id} established" def create: Unit = System.out.println(s"singleton EC2MemOpt connection with session id ${id} created") def destroy: Unit = System.out.println(s"singleton EC2MemOpt connection with session